#ifndef __INPUT_EVENT_H__
#define __INPUT_EVENT_H__
#include <SDL.h>
#include "camera.h"
#include "mat4.h"
#include "vec2.h"

class InputManager {
public:
    bool pollEvent(float delta);
    Mat4x4 getViewMat() const;
    float cameraSpeed;
    Camera camera;
private:
    void mouseHandle();
    void keyDownHandle();

    SDL_Event mEvent;
    float mYaw = 0.0f;
    float mPitch = 0.0f;
    Vec2f mLastMousePos = Vec2f{400.0f, 300.0f};
};

#endif
